*******************************************************************************
*** Replication code for 
** Piscopo, Jennifer M., and Susan Franceschet. 2022. 
** "Policymaking, Constituency Service, and the Pandemic: How Working Remotely Transformed U.S. State Legislators' Representative Roles." **
** Representation.  https://doi.org/10.1080/00344893.2022.2034661***
******************************************************************************

** States represented in our dataset
tab state
tab district

** descriptive statistics
tab woman
tab democrat
tab woman democrat

** response bias
tab rising
tab covid

** Policymaking & oversight 
* comfort with virtual communication
tab vidlook
tab vidhome
tab vidsec
tab msgsec 
tab vidtone
tab toneemail
tab justmsg
tab justcall
tab vidheard

** policymaking tasks 
tab inpown
tab inplead
tab inpoth
tab intchange
tab intpown
tab intplead
tab intstaff
tab intdist
tab intpoth

** Figure 1
tab insocial
tab talksmall
tab talkpoth
tab talkpown

*generating support for ideas, moving projects forward, and convening people
tab inideas
tab inproj
tab dostleg

*checking for differences for in-session versus out-of-session legislatures
tab intcon hadsession, column chi2
tab intstaff hadsession, column chi2
tab intdist hadsession, column chi2 
tab intcomm hadsession, column chi2
tab intpown hadsession, column chi2 
tab intpoth hadsession, column chi2
tab intplead hadsession, column chi2

** constituency service 
tab commans 
tab commhelp 
tab commlead 
tab commsoc 
tab inconst

tab dostdist
tab commmtg
tab intcon

tab commans hadsession, column chi2
tab commhelp hadsession, column chi2
tab commlead hadsession, column chi2
tab commsoc hadsession, column chi2
tab commmtg hadsession, column chi2

* workloads and job satisfaction
tab demand
tab difficult 
tab jobschange
tab whyless

tab srvstate
tab reward

tab demand hadsession, column chi2
tab reward hadsession, column chi2
tab difficult hadsession, column chi2


